﻿<%@ Page Language="C#" MasterPageFile="~/admin/TeampAdmin.Master" AutoEventWireup="true" CodeBehind="ChiTietHoaDon.aspx.cs" Inherits="CungUngXayDung.admin.ChiTietHoaDon" %>

<asp:Content ID="Content3" ContentPlaceHolderID="PageTittle" Runat="Server">
    QUẢN LÝ CHI TIẾT HÓA ĐƠN
<hr>

</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
    <center><asp:Table ID="Table1" runat="server" GridLines="Horizontal" 
        HorizontalAlign="Center" Width = "550"> 
        
        <asp:TableRow Height = "25"><asp:TableCell><asp:Label ID="Label3" runat="server" Text="Tên khách hàng"></asp:Label></asp:TableCell><asp:TableCell><asp:TextBox ID="txtNguoiDung" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>       
         <asp:TableRow Height = "25"><asp:TableCell><asp:Label ID="Label4" runat="server" Text="Mã khách hàng"></asp:Label></asp:TableCell><asp:TableCell><asp:TextBox ID="txtMaNguoiDung" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>   
        <asp:TableRow Height = "25"><asp:TableCell><asp:Label ID="Label1" runat="server" Text="Mã hóa đơn"></asp:Label></asp:TableCell><asp:TableCell><asp:TextBox ID="txtMaHoaDon" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>
         <asp:TableRow Height = "25"><asp:TableCell><asp:Label ID="Label2" runat="server" Text="Hình thức thanh toán"></asp:Label></asp:TableCell><asp:TableCell><asp:TextBox ID="txtHinhThucThanhToan" runat="server" Width = "120"></asp:TextBox></asp:TableCell></asp:TableRow>
          <asp:TableRow Height = "25"><asp:TableCell><asp:Label ID="Label5" runat="server" Text="Tình trạng hóa đơn cũ"></asp:Label></asp:TableCell><asp:TableCell><asp:TextBox ID="txtTinhTrangHoaDon" runat="server" Width = "120"></asp:TextBox></asp:TableCell></asp:TableRow>
         <asp:TableRow Height = "25"><asp:TableCell><asp:Label ID="Label18" runat="server" Text="Chọn tình trạng hóa đơn mới"></asp:Label></asp:TableCell><asp:TableCell><asp:DropDownList ID="ddlTinhTrangHoaDon" runat="server" Width = "120"></asp:DropDownList></asp:TableCell></asp:TableRow>
        
    </asp:Table>    
        
        <br />
        <asp:Button ID="btnSave" runat="server" Text="Lưu" onclick="btnSave_Click" 
            Width="35px" /> 
        <asp:Button ID="btnCancel" runat="server" Text="Thoát" 
            onclick="btnCancel_Click" />
        <br />
        <br />
       <h3> Danh sách sản phẩm đã đặt </h3>
    </center>

     <center>        
            <asp:GridView ID="GridView1" runat="server" 
            AutoGenerateColumns="False" EnableModelValidation="True" AllowPaging="True" 
              PageSize="6"    
                HorizontalAlign="Center" BorderColor="Black" CaptionAlign="Bottom">
        <Columns>
            <asp:BoundField DataField="MaChiTietHoaDon" HeaderText="Mã chi tiết hóa đơn" />
            <asp:BoundField DataField="MaHoaDon" HeaderText="Mã hóa đơn" />
            <asp:BoundField DataField="TenSanPham" HeaderText="Tên sản phẩm" />
            <asp:BoundField DataField="SoLuong" HeaderText="Số lượng" />
            <asp:BoundField DataField="DonGiaBan" HeaderText="Đơn giá bán" />

        </Columns>
        </asp:GridView></center>

</asp:Content>